package xpn.business.fund_return.entity.return_application_form;

import org.springframework.data.rest.webmvc.RepositoryRestController;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xpn.platform.common.repository.XpnRepositoryController;

import javax.annotation.Resource;

@RestController
@RepositoryRestController
@RequestMapping("returnApplicationForm")
public class ReturnApplicationFormController extends XpnRepositoryController<ReturnApplicationForm, Long> {

    @Resource
    private ReturnApplicationFormService returnApplicationFormService;

    @PostMapping("")
    public ReturnApplicationForm saveReturnApplicationForm(@RequestBody ReturnApplicationForm returnApplicationForm) {
        return returnApplicationFormService.save(returnApplicationForm);
    }
}
